package com.heima.model.comment.pojos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@Document("ap_comment_reply")
@NoArgsConstructor
@AllArgsConstructor
public class CommentReply {
    //id
    //评论id
    //点赞数
    //评论内容
    //评论人id
    //评论人
    //创建时间
    //进行操作类型1/0就是点不点赞
    @Id
    private String id;
    @Field
    private String commentId;
    @Field
    private Long likes;
    @Field
    private String content;
    @Field
    private Integer userId;
    @Field
    private String userName;
    @Field
    private Date createTime;
    @Field
    private Short operation;
}
